import random

a = [0]*366
n = 1
while True:
    b = random.randint(1,365)
    if a[b] != 0:
#        print(b)
        break
    a[b] = 1
    n += 1

print(n)



    
    
    
